package br.com.sgs.facade;

import br.com.sgs.persist.Obra;

/**
 * @author UpTech
 */
public class FacadeObra {

    private Obra obra = new Obra();

    public Obra getObra() {
        return obra;
    }

    public void setObra(Obra obra) {
        this.obra = obra;
    }

    public String cadastrarObra() {
        String status = new Obra().cadastrarObra(obra);
        this.obra = new Obra();
        return status;
    }

    public String alterarObra() {

        String status = new Obra().alterarObra(obra);
        this.obra = new Obra();
        return status;
    }

    public String excluirObra() {

        String status = new Obra().excluirObra(obra);
        this.obra = new Obra();
        return status;
    }

    public String cancelaObra() {

        String status = new Obra().cancelarObra();
        this.obra = new Obra();
        return status;
    }
 }
